package cn.itcast.tool;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Component;
import cn.itcast.dto.Package;

import java.util.ArrayList;
import java.util.List;

/**
 * @author shd
 * @version V1.0
 * @date 2025-04-21 1:39
 */
@Component
public class SetTool {

    @Tool(description = "根据用户需求获取套餐详细信息")
    public List<Package> packageList() {
        ArrayList<Package> list = new ArrayList<>();
        Package package1 = new Package("经济卡", 39, "10GB", 100, "无", 0, "首月半价畅享");
        Package package2 = new Package("全家享", 99, "50GB", 500, "200M宽带+2张副卡", 12, "送视频会员月卡");
        Package package3 = new Package("全球通尊享", 199, "不限量", 2000, "国际漫游+5G优先", 24, "机场贵宾厅2次/年");
        Package package4 = new Package("学生青春卡", 59, "30GB", 200, "校园网加速", 6, "免流特定APP");
        list.add(package1);
        list.add(package2);
        list.add(package3);
        list.add(package4);
        return list;
    }
}
